package com.wxg.common.core.module.user.dao.mysql;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * @author void
 * @date 2022/08/07/00:31
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class User implements Serializable {
    private Long id;

    /**
     * 用户名
     *
     * @mbg.generated
     */
    private String userName;

    /**
     * 用户生日
     *
     * @mbg.generated
     */
    private Date birthday;

    /**
     * 性别 0-未知 1-男 2-女
     *
     * @mbg.generated
     */
    private Integer sex;

    /**
     * 最后登录时间
     *
     * @mbg.generated
     */
    private Date latestLoginTime;

    /**
     * 创建时间
     *
     * @mbg.generated
     */
    private Date createTime;

    /**
     * 修改时间
     *
     * @mbg.generated
     */
    private Date updateTime;

    /**
     * 删除时间
     *
     * @mbg.generated
     */
    private Date deleteTime;

    private static final long serialVersionUID = 1L;

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", userName=").append(userName);
        sb.append(", birthday=").append(birthday);
        sb.append(", sex=").append(sex);
        sb.append(", latestLoginTime=").append(latestLoginTime);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", deleteTime=").append(deleteTime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}